/** 该文件仅存放购物车模块相关的接口API */
import myaxios from "../MyAxios";
// 引入路径前缀
import BASEURL from '../BaseUrl' 
const {LJPZURL} = BASEURL

const cartApi = {
  /** 查询所有购物车 */
  queryAll(params:object) {
    // http://127.0.0.1:3000/cart/userinfo?user_id=3
    return myaxios.get(LJPZURL+'/cart/userinfo',params);
  },
  // 查询购物车商品信息
  /**
   * 
   * @param params 
   * @returns 
   */
  querySall(params:object){
    return myaxios.get(LJPZURL+"/cart/qqq",params)
  },
  /**
   * 删除购物车信息
   */
  deleteqq(params:object){
    return myaxios.get(LJPZURL+"/cart/delete",params)
  },
  dizhiall(params:object){
    return myaxios.get(LJPZURL+"/address/userinfo",params)
  }
}

export default cartApi;